import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import Images from '@/components/Images'
import Classify from '@/components/Classify'
import Shangpin from '@/components/Shangpin'
import ClassifyForm from '@/components/ClassifyForm'
import Dpbp from '@/components/Dpbp'
import Jtbb from '@/components/Jtbb'
import Ydbb from '@/components/Ydbb'
import Tzzq from '@/components/Tzzq'
import Pjzq from '@/components/Pjzq'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
      children: [
        { path: '/pjzq', name: 'pjzq', component: Pjzq },
        { path: '/tzzq', name: 'tzzq', component: Tzzq },
        { path: '/ydbb', name: 'ydbb', component: Ydbb },
        { path: '/jtbb', name: 'jtbb', component: Jtbb },
        { path: '/dpbp', name: 'dpbp', component: Dpbp },
        { path: '/img', name: 'images', component: Images },
        { path: '/cy', name: 'classify', component: Classify },
        { path: '/sp', name: 'shangpin', component: Shangpin },
        { path: '/', name: 'classify', component: Classify },
      ]
    },
    {
      path:'/cyf',
      name:'cyf',
      component:ClassifyForm
    }
  ]
})
